# -*-coding:utf-8 -*-
import paho.mqtt.client as mqtt
import paho.mqtt.publish as publish
import json
# The callback for when the client receives a CONNACK response from the server.

# obj = {"id": 52, "verb": "你好foiweurobowieqruoiewru<b>dskfjljfd</b>"}

# 导航到企业介绍
# publish.single("edbox/termianl/1/cmd", "nav welcome", hostname="211.149.200.96", port=9883)

# 开机
# publish.single("edbox/termianl/1/syscmd", "reboot", hostname="211.149.200.96", port=9883)

# 屏幕旋转
# publish.single("edbox/box/1/syscmd", "xrandr left", hostname="211.149.200.96", port=9883)
publish.single("edbox/box/047088756480/syscmd", "cutscreen", hostname="211.149.200.96", port=9883)
# publish.single("edbox/box/2/syscmd", "hreport 1", hostname="211.149.200.96", port=9883)
